package com.industrial.auth.zhgx.oauth2.model;


import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 门户token对象
 *
 * @Author: lvjix
 * @Copyright: 亿云信息
 * @Date: 2025-03-13 10:38:10:38
 */
public class OupAuth2Token {

    /**
     * 访问令牌
     */
    @JsonProperty("access_token")
    private String accessToken;

    /**
     * 令牌类型
     */
    @JsonProperty("token_type")
    private String tokenType;

    /**
     * 刷新令牌
     */
    @JsonProperty("refresh_token")
    private String refreshToken;

    /**
     * 令牌过期时间
     */
    @JsonProperty("expires_in")
    private int expiresIn;

    /**
     * 权限范围
     */
    private String scope;

    /**
     * 是否有效
     */
    private boolean active;

    /**
     * 用户信息
     */
    @JsonProperty("user_info")
    private OupAuth2TokenUserInfo userInfo;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public OupAuth2TokenUserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(OupAuth2TokenUserInfo userInfo) {
        this.userInfo = userInfo;
    }
}
